PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


GetWindowOwnerCount

Obtains the number of existing references to a window.

pascal OSStatus GetWindowOwnerCount (
                     WindowPtr window,
                     UInt32 *outCount);
window
A value of type WindowPtr . Pass a pointer to the window whose reference (owner) count is to be determined.
outCount
A pointer to a value that, on return, contains the current number of references to the window.
function result
A result code. See Result Codes.
DISCUSSION

With the Mac OS 8.5 Window Manager, all windows are created with a reference count (owner count) of one. The function CloneWindow increments the number of references to a window, and the earlier function DisposeWindow decrements the number of references. When the reference count reaches zero, DisposeWindow disposes of the window.

VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)